package com.rui.patterns.singleton.demo02;
/**
 * @className    : Client
 * @author       : [锐神NO.3]
 * @version      : [v1.0]
 * @createTime   : [2022/2/9 11:14]
 * @description  : [描述该类的功能]
 */
 
public class Client {
    public static void main(String[] args) {
        Singleton singleton1 = Singleton.getInstance();
        Singleton singleton2 = Singleton.getInstance();

        //判断两次获取到的对象是不是一个对象
        System.out.println(singleton1 == singleton2);
    }
}
